package com.goldgov.information.service;

import com.goldgov.utils.PropertyUtil;

/**
 * 采集规则bean
 * @ClassName: Article
 */
public class ArticleRules {
	//审核状态
	public static Integer AUDIT_STATE_YES=new Integer(1);
	public static Integer AUDIT_STATE_NO=new Integer(2);
	
	//运行状态
	public static Integer RUNNING_STATE_YES=new Integer(1);
	public static Integer RUNNING_STATE_NO=new Integer(2);
	
	private String rulesID;//采集规则id
	
	private String[] rulesIDs;//采集规则id
	
	private String urlName;//网站名称
	private String urlAddress;//网站地址
	private Integer level;//采集级别
	private String titleRules;//标题
	private String dateRules;//发布时间
	private String sourceRules;//来源
	private String authorRules;//作者
	private String contentRules;//正文
	private String urlRules;//采集规则
	private String lastModifyDate;//最后修改时间
	private String lastOperationDate;//最后操作时间
	private Integer activeState;//活跃状态  1.激活   2.删除
	private String pagingRules;//翻页规则
	private Integer runningState;//运行状态
	private Integer isAudit;//是否需要审核
	private String note;//备注
	private Integer cmsCategoryID;//栏目id
	private String subTitleRules;//副标题
	
	
	public String[] getRulesIDs() {
		return rulesIDs;
	}
	public void setRulesIDs(String[] rulesIDs) {
		this.rulesIDs = rulesIDs;
	}
	public String getSubTitleRules() {
		return subTitleRules;
	}
	public void setSubTitleRules(String subTitleRules) {
		this.subTitleRules = subTitleRules;
	}
	public Integer getCmsCategoryID() {
		return cmsCategoryID;
	}
	public void setCmsCategoryID(Integer cmsCategoryID) {
		this.cmsCategoryID = cmsCategoryID;
	}
	public Integer getActiveState() {
		return activeState;
	}
	public void setActiveState(Integer activeState) {
		this.activeState = activeState;
	}
	public String getRulesID() {
		return rulesID;
	}
	public void setRulesID(String rulesID) {
		this.rulesID = rulesID;
	}
	public String getUrlName() {
		return urlName;
	}
	public void setUrlName(String urlName) {
		this.urlName = urlName;
	}
	public String getUrlAddress() {
		return urlAddress;
	}
	public void setUrlAddress(String urlAddress) {
		this.urlAddress = urlAddress;
	}
	public Integer getLevel() {
		if(PropertyUtil.objectNotEmpty(level)) 
			return level;
		else
			return 2;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public String getTitleRules() {
		return titleRules;
	}
	public void setTitleRules(String titleRules) {
		this.titleRules = titleRules;
	}
	public String getDateRules() {
		return dateRules;
	}
	public void setDateRules(String dateRules) {
		this.dateRules = dateRules;
	}
	public String getSourceRules() {
		return sourceRules;
	}
	public void setSourceRules(String sourceRules) {
		this.sourceRules = sourceRules;
	}
	public String getAuthorRules() {
		return authorRules;
	}
	public void setAuthorRules(String authorRules) {
		this.authorRules = authorRules;
	}
	public String getContentRules() {
		return contentRules;
	}
	public void setContentRules(String contentRules) {
		this.contentRules = contentRules;
	}
	public String getUrlRules() {
		return urlRules;
	}
	public void setUrlRules(String urlRules) {
		this.urlRules = urlRules;
	}
	public String getLastOperationDate() {
		return lastOperationDate;
	}
	public void setLastOperationDate(String lastOperationDate) {
		this.lastOperationDate = lastOperationDate;
	}
	public Integer getRunningState() {
		return runningState;
	}
	public void setRunningState(Integer runningState) {
		this.runningState = runningState;
	}
	public String getLastModifyDate() {
		return lastModifyDate;
	}
	public void setLastModifyDate(String lastModifyDate) {
		this.lastModifyDate = lastModifyDate;
	}
	public Integer getIsAudit() {
		return isAudit;
	}
	public void setIsAudit(Integer isAudit) {
		this.isAudit = isAudit;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public String getPagingRules() {
		return pagingRules;
	}
	public void setPagingRules(String pagingRules) {
		this.pagingRules = pagingRules;
	}
	
}
